-- I am planning on adding a GUI at some point.
-- Until then, please find enclosed the following settings:


-- "gain" is the format of the message that will be displayed when you receive money.
Cashier.gain = "You receive[ %g:c:i][ %s:c:i][ %c:c:i]."
-- "lose" is the format of the message that will be displayed when you lose money.
Cashier.lose = "You lose[ %g:c:i][ %s:c:i][ %c:c:i]."
-- The above is an example of what could be done.
-- I use a simple "+[%g:c ][%s:c ][%c:c]" and "-[%g:c ][%s:c ][%c:c]".

-- Format usage:
--  "%g" is gold, "%s" - silver, "%c" - copper.
--  The characters directly after those ("c" and "i") can be used to individually color and/or use icons on the values.
--  They should be separated with ":".
--  Everything in the "[]" brackets will only be displayed if the value (gold, silver or copper) is actually displayed (see below for options of when the values should and shouldn't be displayed).
--  The message can be colored by the conventional format:
--  |cAARRGGBBYOUR COLORED TEXT HERE|r
--  "AA", "RR", "GG" and "BB" are the hexademical values of alpha, red, green and blue, respectively.
--  "|r" will return any further text to its default value.


Cashier.hideZeroValues		= true	-- e. g.: 10 gold 0 silver 15 copper => 10 gold 15 copper
Cashier.hideEndZeroValues	= true	-- e. g.: 10 gold 0 silver 0 copper => 10 gold; 10 gold 0 silver 15 copper => 10 gold 0 silver 15 copper
Cashier.leadingZero				= true	-- e. g.: 10 gold 5 silver 7 copper => 10 gold 05 silver 07 copper
Cashier.colors						= {
	g = "ffffd700",									-- gold color
	s = "ffc7c7cf",									-- silver color
	c = "ffeda55f"									-- copper color
}
Cashier.icons							= {			-- these are the paths to the coin icons
	g = "Interface\\MoneyFrame\\UI-GoldIcon",
	s = "Interface\\MoneyFrame\\UI-SilverIcon",
	c = "Interface\\MoneyFrame\\UI-CopperIcon"
}


-- Spam prevention customizable to multiple situations
Cashier.settings = {
	-- General is the settings which will be used when looting, trading, etc.
	-- The rest are self explanatory.
	general = {filter = "(-300;-200]U(-100;100)U[200;300)/addup"},
	-- The "filter" option specifies a list of ranges.
	-- If the money (in copper) gained or lost is within any of those, no message will be displayed.
	-- Note that if you lose 15 copper that would be -15, not 15.
	-- Using the example filter above, any values that are
	-- between -300 and -200 (included) OR between -100 and 100 OR betwen 200 (included) and 300
	-- will not display a message.
	-- If the "/addup" option is present, values will add up.
	-- For example: you loot 2s 50c. This will be filtered and not displayed.
	-- You then loot amother 2s 50c. Your whole gain of 5s is not filtered and will be displayed.
	
	-- The filter option in general is used for every situation that does not have a custom filter.
	MERCHANT = {throttle = 0.1},
	-- The "throttle" option specifies an interval in seconds, at which a single message of your gains/losses will be displayed.
	-- I suggest at least 0.1 for merchant, if you use any auto-buy/sell macros/addons.
	-- If there is no throttle option, or it is a negative value, a message will be displayed for every item sold, bought, resulting in spam.
	MAIL = {block = true},
	-- The "block" option blocks all messages, until the merchant/mailbox/trainer/AH is exited, when a single message of your gains/losses will be displayed.
	-- If the "block" option is true, all other options will be ignored.
	TRAINER = {block = true},
	AUCTION_HOUSE = {block = true}
}